package cn.com.kingkit.mvc.service.impl.business;

import java.io.Serializable;

import cn.com.kingkit.mvc.model.business.Bom;
import cn.com.kingkit.mvc.service.BaseService;
import cn.com.kingkit.mvc.exception.BusinessException;

public class BomService extends BaseService<Bom> implements Serializable{

	public void save(Bom b) throws BusinessException{
		if (null != b && null != b.getId()) {
			if(null != b.getId() && !"".equals(b.getId())){
				update(b);
			}else{
				add(b);
			}
		}else {
			throw new BusinessException("BOM表ID不能为空");
		}
	}
	
}
